﻿Imports System.Configuration

''' <summary>
''' 実行環境
''' </summary>
''' <remarks></remarks>
Public Class ExecutionElement
    Inherits ConfigurationElement

    ''' <summary>
    ''' 実行環境名
    ''' </summary>
    <ConfigurationProperty("name", IsRequired:=True)>
    Public Property Name() As String
        Get
            Return DirectCast(Me("name"), String)
        End Get
        Set(ByVal value As String)
            Me("name") = value
        End Set
    End Property

    ''' <summary>
    ''' タグ
    ''' </summary>
    ''' <remarks>
    ''' #5 イベントを見直す
    ''' </remarks>
    <ConfigurationProperty("tag")>
    Public Property Tag() As String
        Get
            Return DirectCast(Me("tag"), String)
        End Get
        Set(ByVal value As String)
            Me("tag") = value
        End Set
    End Property

    '#4 on-release属性は廃止
    '''' <summary>
    '''' リリース時の環境名
    '''' </summary>
    '''' <remarks>
    '''' 同値を指定した場合、デバッグモード以外では強制的にこの環境名が使用されます
    '''' </remarks>
    '<ConfigurationProperty("on-release")>
    'Public Property ReleaseName() As String
    '    Get
    '        Return DirectCast(Me("on-release"), String)
    '    End Get
    '    Set(ByVal value As String)
    '        Me("on-release") = value
    '    End Set
    'End Property
End Class
